<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ page import="com.ionglobal.db.*" %>
<%@ page import="com.ionglobal.lib.*" %>
<%@ page import="com.ionglobal.misc.*" %>
<%@ page import="com.ionglobal.cms.*" %>

<%@ include file="../init_include.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<%=Language.getHTMLLanguageStr()%>">
<link rel="stylesheet" href="../css.css" type="text/css">
<title><%=Language.getNameByCode("cms.changestatus","Archive Check")%></title>
</head>
<%
	int check_rst=Permission.accept(dbi,session,request,"sysop","tree","catid","000000001"); 	
	if (check_rst!=Permission.CHECK_RST_SUCCESS) {
		dbi.closeAll();
		if (check_rst==Permission.CHECK_RST_DENY)
			response.sendRedirect("../deny.html");
		else
			response.sendRedirect("../index.jsp");
		return;		
	}
			
	int catid=0;
	try {	
		if(request.getParameter("catid")!=null) {
			catid=Integer.parseInt(request.getParameter("catid"));		
			Category cat=new Category(dbi,catid);
		}			
	} catch (NumberFormatException e) {
		out.println(e);
		return ;
	}
	String id="";
	if(request.getParameter("id")!=null)
		id=request.getParameter("id");
%>
<body>
<%=Language.getNameByCode("sys.CurrentPos","Current Position")%>:<%=Language.getNameByCode("cms.changestatus","Archive Check")%><br> 
<hr>   
   <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#666666">
	 <form method="post" name="formIon" action="archive_check1.jsp">
   <tr class="bgcolor_title_tr"> 
     <td width="60" class="input_title">&nbsp;<%=Language.getNameByCode("cms.status","Status")%></td>
     <td>
     		<select name="status">
     <%  String statusstr[]=StaticDim.getArchiveStatus();
     		 for(int i=0;i<statusstr.length;i++) {
     		 		out.print("<option value=\""+i+"\">"+statusstr[i]+"</option>");
     		 }
     %>
     		</select>     			
		 </td>
   </tr>
   <tr class="bgcolor_title_tr"> 
     <td width="60" class="input_title">&nbsp;</td>
     <td></td>
   </tr>
 </table>
 <input type="submit" name="button" style="width=80" value="<%=Language.getNameByCode("sys.Submit","Submit")%>"> 
 <input type="button" name="close" style="width=80" value="<%=Language.getNameByCode("sys.Close","Close")%>" onClick="self.close();">
 <input type="hidden" name="id" value="<%=id%>">
 <input type="hidden" name="catid" value="<%=catid%>">
 </form>
</body>                
</html>        
<%@ include file="../init_free.jsp" %>        
